package com.hf.threaddemo;

public class ThreadOne extends Thread{
    @Override
    public void run() {
        //业务逻辑处理的目的
        for (int i = 0; i < 10; i++){
            System.out.println("Thread One :"+i);
            //休眠1s
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }

    }
}
